import request from "@/utils/request"
// import {get} from '@/utils/request'
// axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
export function getCategoryApi() {
  return request.get('/category/list')
}
export function getGoodListApi(data) {
  return request.get('/good/list',{params: data})
  // return request.get('/good/list',data)
  // return get('/good/list',data)
  // return request.get('/good/list?categoryId=1413341197421846529',data)
}
export function getGoodApi(id) {
  return request.get('/good/'+id)
  // return request.get('/good/list?categoryId=1413341197421846529',data)
}